package com.etc.delivery.service.admin.impl;

import com.etc.delivery.dao.admin.AdminLoginDao;
import com.etc.delivery.entity.Admin;
import com.etc.delivery.service.admin.IAdminLoginService;
import com.etc.delivery.utils.MD5Utils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdminLoginServiceImpl implements IAdminLoginService {


    @Resource
    private AdminLoginDao loginDao;

    @Override
    public List<Admin> login(String account, String password) {
        return loginDao.login(account, MD5Utils.getPWD(password));
    }
}
